package com.mall.api.service.Impl;

import com.mall.api.dao.BannerDao;
import com.mall.api.entity.BannerEntity;
import com.mall.api.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * banner
 * @author venus
 * @date 2020/04/28
 */
@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerDao bannerDao;


    @Override
    public int insert(BannerEntity bannerEntity) {
        return bannerDao.insert(bannerEntity);
    }

    @Override
    public int delete(int id) {
        return 0;
    }

    @Override
    public int update(BannerEntity bannerEntity) {
        return 0;
    }

    @Override
    public BannerEntity load(int id) {
        return bannerDao.load(id);
    }

    @Override
    public Map<String, Object> pageList(int offset, int pagesize) {
        return null;
    }
}
